﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zor_DAL;
using Zor_Modes;
using Zor_Tools;

namespace Zor_Bll
{
    public class InvoiceRemake_Bll<T> where T : class
    {
        ///// <summary>
        ///// 获取发票号重录管理列表
        ///// </summary>
        ///// <param name="index">页码</param>
        ///// <param name="TotalCount">返回值</param>
        ///// <returns></returns>
        public static List<T> GetPageList(dynamic Model, int index, out int TotalCount, string where)
        {
            return PagerHelp<T>.GetPagerList(index, "V_InvoiceRemake", "Acceptance_TicketNumber", out TotalCount, where);
        }


        /// <summary>
        /// 获取发票号重录管理列表
        /// </summary>
        /// <returns></returns>
        public static List<T> Invoice_Remake(string where)
        {
            return InvoiceRemake_DAL<T>.Invoice_Remake(where);
        }
        /// <summary>
        /// 重录发票号
        /// </summary>
        /// <returns></returns>
        public static List<T> UpdateInvoice(int In_Id)
        {
            return InvoiceRemake_DAL<T>.UpdateInvoice(In_Id);
        }
        /// <summary>
        /// 更改发票号
        /// </summary>
        /// <returns></returns>
        public static List<T> Invoice_New(int In_Id, string InNumBer)
        {
            return InvoiceRemake_DAL<T>.Invoice_New(In_Id, InNumBer);
        }
        /// <summary>
        /// 第二次更改发票号
        /// </summary>
        /// <returns></returns>
        public static List<T> Invoice_Two(int In_Id, string InNumBer)
        {
            return InvoiceRemake_DAL<T>.Invoice_Two(In_Id, InNumBer);
        }
        /// <summary>
        /// 第三次更改发票号
        /// </summary>
        /// <returns></returns>
        public static List<T> Invoice_Three(int In_Id, string InNumBer)
        {
            return InvoiceRemake_DAL<T>.Invoice_Three(In_Id, InNumBer);
        }
        /// <summary>
        /// 获取发票号
        /// </summary>
        /// <returns></returns>
        public static List<T> Invoice_Get(int In_Id)
        {
            return InvoiceRemake_DAL<T>.Invoice_Get(In_Id);
        }
    }
}